package org.delphy.indy2.containers.carbonFunTreeClasses
{
	import mx.containers.Canvas;
	import mx.styles.StyleManager;
	
	import org.delphy.indy2.core.ICarbonComponent;
	
	public class CarbonFunTreeLauncher extends Canvas implements ICarbonComponent
	{
		/**
		 * Constructor
		 */
		public function CarbonFunTreeLauncher()
		{
			super();
		}
		
		/**
		 * @protected
		 */
		override protected function measure() : void{
			measuredWidth = 47;
			measuredHeight = 26;
		}
		
		override protected function commitProperties() : void{
			super.commitProperties();
			
			if(!styleName)
				styleName = "carbonFunTreeLauncher";
			
			if(!getStyle("backgroundImage"))
				setStyle("backgroundImage", StyleManager.getStyleDeclaration(".carbonFunTreeLauncher").getStyle("backgroundImage"));

			if(!getStyle("backgroundSize"))
				setStyle("backgroundSize", StyleManager.getStyleDeclaration(".carbonFunTreeLauncher").getStyle("backgroundSize"));
		}
		
		public function get defaultStyleName():String{
			return "carbonFunTreeLauncher";
		}
	}
}